package tony.com.test;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

import tony.com.xframe.acitivity.BaseActivity;

/**
 * Created by Tony on 2016-01-04.
 */
public class AutoLayoutTestAcitivty extends BaseActivity {
    ImageView imageView;

    @Override
    public int getLayoutId() {
        return R.layout.activity_autolayout;
    }

    @Override
    public void initWidge() {
        imageView = (ImageView) findViewById(R.id.tv_glide);
        Glide.with(this).load("http://img4.imgtn.bdimg.com/it/u=1621924933,968611299&fm=21&gp=0.jpg")
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .override(200,200)
                .into(imageView);
    }

    @Override
    public void widgeClick(int viewId) {

    }
}
